package com.jingxin.zero.flow.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jingxin.zero.core.BaseServiceImpl;
import com.jingxin.zero.flow.entity.{{{=it.tableInfo.nameLargeHump}}};
import com.jingxin.zero.flow.mapper.{{{=it.tableInfo.nameLargeHump}}}Mapper;
import com.jingxin.zero.flow.service.I{{{=it.tableInfo.nameLargeHump}}}Service;
import com.jingxin.zero.flow.vo.{{{=it.tableInfo.nameLargeHump}}}Vo;
import com.jingxin.zero.flow.dto.{{{=it.tableInfo.nameLargeHump}}}DTO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
*
* @author ethan
*/
@Service("{{{=it.tableInfo.nameSmallHump}}}Service")
public class {{{=it.tableInfo.nameLargeHump}}}ServiceImpl extends BaseServiceImpl<{{{=it.tableInfo.nameLargeHump}}}Mapper, {{{=it.tableInfo.nameLargeHump}}}> implements I{{{=it.tableInfo.nameLargeHump}}}Service{


    @Override
    public IPage<{{{=it.tableInfo.nameLargeHump}}}Vo> select{{{=it.tableInfo.nameLargeHump}}}Page(IPage<{{{=it.tableInfo.nameLargeHump}}}Vo> page, {{{=it.tableInfo.nameLargeHump}}}DTO {{{=it.tableInfo.nameSmallHump}}}) {
        return page.setRecords(baseMapper.select{{{=it.tableInfo.nameLargeHump}}}Page(page, {{{=it.tableInfo.nameSmallHump}}}));
    }

    @Override
    public List<{{{=it.tableInfo.nameLargeHump}}}> listByCondition({{{=it.tableInfo.nameLargeHump}}}DTO {{{=it.tableInfo.nameSmallHump}}}DTO) {
        return baseMapper.listByCondition({{{=it.tableInfo.nameSmallHump}}}DTO);
    }

}